Skip to content

Add Ruang Belajar collection#29

Merged
wauputr4 merged 2 commits into
mainfrom
codex/ruang-belajar
Jul 15, 2026
Merged

Add Ruang Belajar collection#29
wauputr4 merged 2 commits into
mainfrom
codex/ruang-belajar

Conversation

@penadigital00

@penadigital00 penadigital00 commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add the Ruang Belajar catalogue with Google Drive preview and download links for six works by Onno W. Purbo
  • add an author profile, Onno Center link, local credited photo, and JSON-LD metadata
  • add home and navigation entry points, author directory, Drive CSP support, and ebook-specific OG images

Why

Make the initial Onno W. Purbo learning collection discoverable and shareable on IndopenSource.

Validation

  • npm run build
  • npm test

Summary by CodeRabbit

  • New Features
    • Added a “Ruang Belajar” section to the homepage and navigation.
    • Introduced a learning resource directory with topic tags, descriptions, and author information.
    • Added individual resource pages with PDF downloads and embedded Google Drive previews.
    • Added an author profile page featuring biography, awards, external links, and available works.
    • Enabled secure embedded previews from Google Drive.

@coderabbitai

coderabbitai Bot commented Jul 15, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@wauputr4, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 55 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: ad6cbf03-0784-4842-9587-5033ee82985e

📥 Commits

Reviewing files that changed from the base of the PR and between 2d6b41b and f2085bb.

⛔ Files ignored due to path filters (7)
  • src/assets/og/learning/ai-untuk-programming-dan-coding-cepat.jpg is excluded by !**/*.jpg
  • src/assets/og/learning/ai-yang-proaktif.jpg is excluded by !**/*.jpg
  • src/assets/og/learning/buat-ai-sendiri-dengan-open-source.jpg is excluded by !**/*.jpg
  • src/assets/og/learning/menulis-jurnal-dibantu-ai.jpg is excluded by !**/*.jpg
  • src/assets/og/learning/roadmap-ai-gotong-royong.jpg is excluded by !**/*.jpg
  • src/assets/og/learning/smart-digital-energy.jpg is excluded by !**/*.jpg
  • src/assets/onno-w-purbo.jpg is excluded by !**/*.jpg
📒 Files selected for processing (7)
  • src/components/SiteHeader.astro
  • src/layouts/BaseLayout.astro
  • src/lib/learning.ts
  • src/pages/belajar/[slug].astro
  • src/pages/belajar/index.astro
  • src/pages/belajar/onno-w-purbo.astro
  • src/pages/index.astro
📝 Walkthrough

Walkthrough

Adds the Ruang Belajar collection with shared resource metadata, author and resource pages, Google Drive previews/downloads, homepage and navigation entry points, and CSP support for embedded Drive content.

Changes

Learning resource collection

Layer / File(s) Summary
Resource data and Drive URL helpers
src/lib/learning.ts
Defines learning-resource metadata, author constants, image references, and Google Drive preview/download URL helpers.
Collection, profile, and resource pages
src/pages/belajar/*
Adds the learning directory, author profile, and static slug-based resource pages with JSON-LD metadata, resource links, and embedded Drive previews.
Navigation, homepage entry point, and embedding policy
src/components/SiteHeader.astro, src/pages/index.astro, src/layouts/BaseLayout.astro
Adds Belajar navigation and homepage links, and permits Google Drive iframe sources through the CSP directive.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Sequence Diagram(s)

sequenceDiagram
  participant Visitor
  participant LearningIndex
  participant ResourcePage
  participant GoogleDrive
  Visitor->>LearningIndex: Open /belajar/
  LearningIndex->>Visitor: Render resource cards
  Visitor->>ResourcePage: Open a resource slug
  ResourcePage->>GoogleDrive: Load preview iframe
  GoogleDrive-->>ResourcePage: Display document preview
Loading

Possibly related PRs

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/ruang-belajar

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces 'Ruang Belajar', a new section showcasing open-source technology publications by Onno W. Purbo. It adds a library file for learning resources, updates navigation and CSP configurations, and creates index, detail, and author profile pages. Feedback on these changes focuses on improving type safety by using Astro Props interfaces, ensuring canonical URLs in JSON-LD metadata, securing the embedded Google Drive iframe with sandbox and allowfullscreen attributes, and consistently resolving metadata image URLs.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread src/pages/belajar/[slug].astro
Comment thread src/pages/belajar/[slug].astro Outdated
Comment thread src/pages/belajar/[slug].astro
Comment thread src/pages/belajar/onno-w-purbo.astro Outdated
@wauputr4 wauputr4 marked this pull request as ready for review July 15, 2026 15:55
@wauputr4 wauputr4 merged commit c991be7 into main Jul 15, 2026
1 of 2 checks passed
@wauputr4 wauputr4 deleted the codex/ruang-belajar branch July 15, 2026 15:56

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 32e4dafd9e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

<BaseButton href="/belajar/" variant="secondary">Lihat semua</BaseButton>
</div>
<div class="grid gap-3 md:grid-cols-2 lg:grid-cols-3">
{learningResources.map((resource) => <a class="riso-hover riso-shadow-sm border-2 border-ink bg-canvas p-4" href={`/belajar/${resource.slug}/`}><span class="meta-row text-brand-dark">{resource.topic} · {resource.year}</span><h3 class="display-sm mt-3 text-ink">{resource.title}</h3></a>)}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep internal learning links under the configured base

When ASTRO_BASE is non-root, these root-relative belajar links bypass the same withBase/BaseButton normalization used elsewhere, so the generated pages link to /belajar/... instead of /<base>/belajar/... and leave subpath deployments with 404s. This direct-link pattern also affects the exported authorProfileHref used in plain <a> tags on the belajar pages.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants